﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="WebComicPage.Login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Welcome to the Comics Shop</title>
    <link href="Presention/ComicShopStyle.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <header>
                <h2>
                    <img src="Images/pow.jpg" width="50" height="30" />
                    Comics Shop Web Service by Nadav Lichtenshtein & Idan Morad
                </h2>
            </header>
            <section>
                <table align="center">
                    <tr>
                        <td>
                            <asp:Label ID="lblError" runat="server" Text="Username or Password are invalid" ForeColor="red" Font-Bold="True" Visible="False"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p>
                                <strong>
                                    <asp:Label ID="lblUserName" runat="server" Text="Label">Username</asp:Label>
                                </strong>
                            </p>
                            <asp:TextBox ID="txbUserName" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Must have a value"
                                ControlToValidate="txbUserName"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p>
                                <strong>
                                    <asp:Label ID="lblPassword" runat="server" Text="Label">Password</asp:Label>
                                </strong>
                            </p>
                            <asp:TextBox ID="txbPassword" runat="server" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Must have a value"
                                ControlToValidate="txbPassword"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding-top: 10px;">
                            <asp:Button ID="btnLogin" runat="server" Text="Login" CssClass="submitButton" OnClick="BtnLoginClick"/>
                        </td>
                    </tr>
                </table>
            </section>
            <footer>
                <p align="center">
                    <strong>
                        <a href="mailto:idanmora@post.bgu.ac.il" class="contactButton">Contact Us!</a><br/>
                        This site was build as fourth assignment in Internet Programming Environments course.
                    </strong>
                </p>
            </footer>
        </div>
    </form>
</body>
</html>
